package com.zlt.miaosha.dao;

import com.zlt.miaosha.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author zhoulitong
 * @date 2018/6/13
 * @description
 */
@Mapper
public interface MiaoshaUserDao {
    @Select("select * from miaosha_user where id = #{id}")
    public MiaoshaUser getById(long id);

    @Update("update miaosha_user set password=#{password} where id=#{id}")
    void update(MiaoshaUser toBeUpdate);
}
